<div class="tableToolbar">
    <div class="coll-md-9" id="addInput">
        <div class="coll-md-1">
            <input type="text" class='search' placeholder="项目名称" ng-model="ctrlScope.itemsearch.itemName">
        </div>
        <div class="coll-md-15">
            <input type="text" class='search' placeholder="用户名/真实姓名" ng-model="ctrlScope.itemsearch.command">
        </div>

        <div class="coll-md-40 scalenone" id="search2">
            <div class="coll-md-20">
                <input type="text" class='search' placeholder="包名" ng-model="ctrlScope.itemsearch.packageName">
                <!--<select class="form-control" ng-model="ctrlScope.itemsearch.packageName">-->
                    <!--<option value=""  disabled selected hidden>包名</option>-->
                    <!--<option value="1">使用</option>-->
                    <!--<option value="0">未使用</option>-->
                <!--</select>-->
            </div>
            <div class="coll-md-20">
                <input type="text" class='search' placeholder="包计划名" ng-model="ctrlScope.itemsearch.packagePlanName">
            </div>

        </div>
        <div class="coll-md-3 scalenone"  id="searchdate" datahide>
            <div class="coll-md-5" >
                <p class="input-group">
                    <input type="text" class="search" placeholder="开始时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.beginDatex" is-open="popup1.opened" datepicker-options="dateOptions"
                           ng-minlength="1" />
						<span class="input-group-btn">
                            <button type="button" class="small-icon btn btn-default" ng-click="open1()"><i class="glyphicon glyphicon-calendar"></i></button></span>
                </p>
            </div>
            <div class="coll-md-5">
                <p class="input-group inline">
                    <input type="text" class="search" placeholder="结束时间" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="ctrlScope.itemsearch.endDatex" is-open="popup2.opened" datepicker-options="dateOptions"
                           ng-minlength="1" />
						<span class="input-group-btn">
							            <button type="button" class="small-icon btn btn-default" ng-click="open2()"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
							          </span>
                </p>
            </div>
        </div>
        <div class="coll-md-1">
            <input type="button" class="small-icon search2-icon" value="搜索" ng-click="search()">
            <input type="button" class="small-icon search2" value="搜索">
            <input type="button" class="small-icon reset-icon" reset-icon value="重置" ng-click="reset()">
            <input type="button" class="small-icon reset" value="重置">

            <div class="dropdown-menu-right">
                <input type="button" class="small-icon more-icon" value="更多" title='更多搜索项' id="more-icon" data-toggle="dropdown"
                       aria-haspopup="true" aria-expanded="false">
                <input type="button" class="small-icon more" value="更多">
                <ul class="dropdown-menu" style='margin-left:80px;' aria-labelledby="dropdownMenu2" more-search>
                    <li><a href="javascript:;">日期搜索</a></li>
                    <li><a href="javascript:;">其他条件搜索</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!--<div class="coll-md-1">-->
        <!--<button class="small-icon btn btn-default pos-right"  ng-click="download()">-->
            <!--<i class="fa fa-download"></i>-->
        <!--</button>-->
    <!--</div>-->
</div>
<div style="width:100%;overflow-x: auto">
    <table ui-table="orderParams"  border="1px" bordercolor="#eee" cellspacing="0px" style="border-collapse:collapse;">
        <thead>
        <tr>
            <th style="text-align:left;padding:4px 4px 4px 12px;">项目名称</th>
            <th style="text-align: left;padding:4px;">用户名</th>
            <th style="text-align: left;padding:4px;">真实名</th>
            <th style="text-align: left;padding:4px;">手机号</th>
            <th style="text-align: left;padding:4px;">包名</th>
            <th style="text-align: left;padding:4px;">计划名</th>
            <th style="text-align: left;padding:4px;">投资信息</th>
            <th style="text-align: left;padding:4px;">订单号</th>

            <th style="text-align: left;padding:4px;">待收金额</th>

            <th style="text-align: left;padding:4px;">期限</th>
            <th style="text-align: left;padding:4px;">债转状态</th>
            <th style="text-align: left;padding:4px;">添加时间</th>
            <th style="text-align: left;padding:4px;" >利率信息</th>
            <th style="text-align: left;padding:4px;">操作</th>
        </tr>
        </thead>
        <tbody>

        <tr ng-repeat="item in orderParams.$rows" style="text-align: left">
            <td style="text-align: left;padding:4px 4px 4px 12px">{{item.itemName}}</td>
            <td style="text-align: left;padding:4px;">{{item.username}}</td>
            <td style="text-align: left;padding:4px;">{{item.realname}}</td>
            <td style="text-align: left;padding:4px;">{{item.mobile}}</td>
            <td style="text-align: left;padding:4px;">{{item.packageName}}</td>
            <td style="text-align: left;padding:4px;">{{item.packagePlanName}}</td>
            <td style="text-align: left;padding:4px;">
                <div>类型：{{item.investType | investType }}</div>
                <div>金额：{{item.investAmount}}</div>
                <div>实际投资金额：{{item.investDealAmount}}</div>
            </td>
            <td style="text-align: left;padding:4px;">{{item.investOrder}}</td>

            <td style="text-align: left;padding:4px;">
                <div>总额：{{item.collectAmount}}</div>
                <div>本金：{{item.collectPrincipal}}</div>
                <div>收益：{{item.collectInterest}}</div>
            </td>

            <td style="text-align: left;padding:4px;">
                <span ng-if="item.itemCycle">{{item.itemCycle}} {{item.itemCycleUnit | cycleUnit}}</span>
                <!--<span ng-if="!item.itemCycle">3 天</span>-->
            </td>
            <td style="padding:4px;text-align: left">{{item.debtTransferStatus}}
                <!--<div ng-if="item.couponName!=null">-->
                    <!--<div>金额：{{item.couponAmount}}</div>-->
                    <!--<div>名称：【{{item.couponName}}】</div>-->
                    <!--&lt;!&ndash;<div>时间：{{item.couponUseTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>&ndash;&gt;-->
                <!--</div>-->
                <!--<div ng-if="item.couponName==null">未使用</div>-->

            </td>
            <td style="text-align: left;padding:4px;">{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</td>

            <td style="padding:4px;text-align: left">
                <div ng-if="item.ticketName!=null">
                    <div>加息率：{{item.itemAddRate}} %</div>
                    <div>利率：{{item.itemRate}}</div>
                    <!--<div>时间：{{item.ticketUseTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>-->
                </div>
                <div ng-if="item.ticketName==null">未使用</div>
            </td>
            <!--<td style="padding:4px;text-align: left">-->
                <!--<div>投资：{{item.addtime | date:'yyyy-MM-dd HH:mm:ss'}}</div>-->
                <!--<div>满标：{{item.fullTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>-->
                <!--<div>回款：{{item.receivableTime | date:'yyyy-MM-dd HH:mm:ss'}}</div>-->
            <!--</td>-->
            <!--<td style="text-align: left;padding:4px 20px 4px 4px;">-->
                <!--<a ng-if="item.contractsUrl" ng-click="getContract(item.contractsUrl)">合同下载</a>-->
            <!--</td>-->
            <td style="padding:4px;text-align: left">
            </td>
        </tr>
        </tbody>
    </table>
</div>

